var tableData = {
	url : ctp + "/attendanceController/getAttenWorkerSearch.shtml",
	propertys : [ "NAME","JOBNO","WORKTYPE","GROUPNAME"],
	opers:false,
	startLoad : function() {
		getListData(this);
	}
};
function searchData(curr) {
	setTagAndValue("form1","wkId",wkId);
	setTagAndValue("form1","wokIds",wokIds); 
	setTagAndValue("form1","SUNNADA_PAGE_SIZE",5); 
	setTagAndValue("form1", "curr", curr);
	tableData.startLoad();
}
$(document).ready(function() {
	searchData();
	
});


function Add(){
	var recIds = getCheckIds();
	 if(recIds==""){
		 jalert("请选择工人！");
		return; 
	 }
	parent.workerIds(recIds);
	closeAttendance();
}

function AddAll(){
	var recIds = jobnos;
	parent.workerIds(recIds);
	closeAttendance();
}

//当前弹窗索引
var attendance_index = parent.layui.layer.getFrameIndex(window.name);

//关闭当前弹窗
function closeAttendance(){
	parent.layui.layer.close(attendance_index);
}
